# To change this template, choose Tools | Templates
# and open the template in the editor.

class Searchable < ActiveRecord::Base

  def self.search(search,page)
    paginate :page => page,
        :conditions => ['nome like ?', "%#{search}%"],
        :order => 'nome ASC',
        :per_page => 11
  end

end
